Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spec where mysql_users was failing for SLES #1649

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Fix spec where mysql_users was failing for SLES #1649

merged 1 commit into from
Sep 20, 2024

Conversation

rahuls2997
Copy link
Contributor

@rahuls2997 rahuls2997 commented Sep 18, 2024

Summary

For the fix, we added a condition where while fetching list of users, we skip users where there is no hostname available.

Additional Context

The acceptance tests were failing for SLES platform. On further inspection, for SLES which was using MariaDB 10.11 version, there was a PUBLIC user created by default with no hostname. The filter and mysql expression filters out such cases and fail the resource command.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

fix mistakes

fix spec for the changed query
@bastelfreak bastelfreak merged commit e11ed5b into main Sep 20, 2024
38 checks passed
@bastelfreak bastelfreak deleted the CAT-2033 branch September 20, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants